home *** CD-ROM | disk | FTP | other *** search
- Path: sm-igw1.geoplex.com!usenet
- From: "Jay B. Perry" <jay@geoplex.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Strange error
- Date: Tue, 09 Apr 1996 11:28:45 -0700
- Organization: AT & T
- Message-ID: <316AAC5D.314D@geoplex.com>
- References: <1996Apr9.111558@winnie>
- NNTP-Posting-Host: 204.160.245.22
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
- CC: zhou@wmich.edu
-
- zhou@wmich.edu wrote:
- >
- > I have been stymied by an error which occurs during run time for
- > certain programs I've written in TC++. What ever I do I cannot find the
- > cause of it. The error says something to the effect of "Floating point
- > error: Domain." or "Domain Error" and "abnormal program termination". What
- > is usually the cause of this? Thanks.
- >
- > -Hanson
-
- This often comes from the math routines that have domain restrictions
- (remember from math class that the domain of functions is sort of like
- the set of values that are valid inputs; I am not a mathematician so
- please don't hammer my lack of precise usage here). An example of something
- that would cause this (for float/integer numbers) would be taking the sqrt of
- a negative number.
-
- There may be other causes of your error as well, but this was one
- possibility that jumped to my mind. Hope this helps out.
-
- Jay
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Jay B. Perry, AT&T | jay@geoplex.com
- 2929 Campus Drive - Suite 350 | V: (415) 577-7747
- San Mateo, CA 94403 | F: (415) 577-7711
-